package com.vehicle.pojo;

import com.alibaba.fastjson.annotation.JSONField;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;
import java.util.List;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class User {
    private Integer uid;
    private String uname;
    private String password;
    private String realname;
    @JSONField(format = "yyyy-MM-dd")
    private Date birthday;
    private String headimg;
    private Integer available;
    private List<Role> roles;
    private Dept dept;
}
